﻿@model MobilnyDostawca.ViewModels.NadzorcyViewModel

@{
    ViewBag.Title = "Zmiana hasła";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Zmiana hasła</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Nadzorca magazynu</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Login)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Login)
            @Html.ValidationMessageFor(model => model.Login)
        </div>

        <div class="editor-label">
            @Html.Label("Stare hasło")
        </div>
        <div class="editor-field">
            @Html.PasswordFor(model => model.StareHaslo)
            @Html.ValidationMessageFor(model => model.StareHaslo)
        </div>

        <div class="editor-label">
            @Html.Label("Nowe hasło")
        </div>
        <div class="editor-field">
            @Html.PasswordFor(model => model.NoweHaslo)
            @Html.ValidationMessageFor(model => model.NoweHaslo)
        </div>

        <div class="editor-label">
            @Html.Label("Potwierdzenie hasła")
        </div>
        <div class="editor-field">
            @Html.PasswordFor(model => model.PotwierdzoneHaslo)
            @Html.ValidationMessageFor(model => model.PotwierdzoneHaslo)
        </div>

        <p>
            <input type="submit" value="Zapisz" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Wróć do ekranu logowania", "LogIn")
</div>
